package com.agino.jdk8.learn.classlearn.objects.testinit;

/**
 * 测试构造方法的枚举类
 *
 * @author qinl
 * @date 2022/4/8 14:26
 **/
public enum TestObjectEnum {
    TEST_OBJECT_1("测试1", TestObject1.class),
    TEST_OBJECT_2("测试1", TestObject2.class),
    ;


    TestObjectEnum(String name, Class clazz) {
        this.name = name;
        this.clazz = clazz;
    }

    private String name;

    private Class clazz;

    public String getName() {
        return name;
    }

    public Class getClazz() {
        return clazz;
    }
}
